import request from "@/utils/request.js"
export function uploadAudio(data) {
	return request({
		url: `/article/recite/upload.php`,
		method: 'POST',
		header:{
			"Content-Type":"multipart/form-data"
		},
		data,
		noLoading:true
	})
}


export function getFavorite(data) {
	return request({
		url: `/article/favorite.php`,
		method: 'GET',
		data
	})
}


export function getArticleInfo(data) {
	return request({
		url: `/article/article.php`,
		method: 'GET',
		data
	})
}


export function saveReciteInfo(data) {
	return request({
		url: `/article/recite/save.php`,
		method: 'POST',
		data
	})
}

export function addFavorite(data) {
	return request({
		url: `/article/favorite/add.php`,
		method: 'GET',
		data
	})
}

export function removeFavorite(data) {
	return request({
		url: `/article/favorite/remove.php`,
		method: 'GET',
		data
	})
}
